/**
 * Created by jianzhao on 2016/6/3.
 */
'use strict';
import {
    StyleSheet,
    Text,
    View,
    WebView,
    Dimensions,
    Image,
    PixelRatio,
    Alert
} from 'react-native';
import React,{Component} from 'react';
import NavTitle from '../component/NavTitle';

class MyWebView extends React.Component {
    // 构造
    constructor(props) {
        super(props);
        this.state={

        }
    }

    render() {
        return (
            <View style={{flex:1,backgroundColor:'#FFF',width:Dimensions.get('window').width}}>
                <NavTitle
                    headColor={'#fbdc3a'}
                    title={'信息查看'}
                    leftButton={true}
                    leftImg={require('../imgs/left.png')}
                    leftText='返回'
                    leftHander={()=> {
                        this.props.navigator.pop();
                    }}
                />

                <WebView
                    style={{width:Dimensions.get('window').width}}
                    source ={{uri:this.props.path}}
                    javaScriptEnabled={true}
                    automaticallyAdjustContentInsets={true}
                >
                </WebView>

            </View>
        );
    }
};

var styles = StyleSheet.create({

});

module.exports = MyWebView;